package entityBeans;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;


@Entity
public class Address {
	private int id;
	private String Street;
	private String City;
	private String zip;
	private String Country;


	public Address(){}
	
	public Address(String st, String cit, String zip, String count){
		this.Street = st;
		this.City = cit;
		this.zip = zip;
		this.Country = count;
	}
	

	@Id@GeneratedValue(strategy=GenerationType.AUTO)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getStreet() {
		return Street;
	}
	public void setStreet(String street) {
		Street = street;
	}
	public String getCity() {
		return City;
	}
	public void setCity(String city) {
		City = city;
	}
	public String getZip() {
		return zip;
	}
	public void setZip(String zip) {
		this.zip = zip;
	}
	public String getCountry() {
		return Country;
	}
	public void setCountry(String country) {
		Country = country;
	}
	
	
	@Override
	public String toString() {
		return Street + "\n" + zip + " " + City + "\n" + Country;  
	}
}
